#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<string.h>


#include<stdio.h>
#include<string.h>


void swap(int* x, int* y) {
    int tmp = *x;
    *x = *y;
    *y = tmp;
}


int main() {
    int a[50] = { 0 };
    int i = 0, j = 0, c = 0, k;
    while (scanf("%d", &a[i]) != EOF)
        i++, c++;

    k = c / 2;
    while (k >= 0) {


        swap(&a[k], &a[c - k]);
        k--;
    }

    printf("%d", a[1]);
    for (i = 2; i <= c; i++) {
        printf(" %d", a[i]);
    }

    return 0;
}